<template lang="pug">
  .RouteControl
    route-control(v-for="item in rout" :key="item") {{ item }}
    div 你好

  </div>
</template>

<script lang="ts">
import {Component, Prop, Vue} from "vue-property-decorator";
import {RouteConfig} from "vue-router";

@Component
export default class RouteControl extends Vue{
  @Prop(Object) rout!: RouteConfig

  get metas() {
    return this.rout.meta ? this.rout.meta : {};
  }
 public created() {
    console.log(this.rout)
 }
}
</script>

<style scoped>

</style>
